﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Parsers;
using Server;
namespace ConsoleUI
{
    class Program
    {
        static void Main(string[] args)
        {
            run();
        }

        //test purpose
        public static void run()
        {
            MainParser mp = new MainParser("MainParser");
            //CommandDescriptor MainCmdDesc = mp.Parse(System.IO.File.ReadAllText(@"P:\Projects\dotNET\MyProjects\RemoteDesktop\FrontendParser\Test\MainXML-RemoteConsole.txt"));
            CommandDescriptor MainCmdDesc = mp.Parse(System.IO.File.ReadAllText(@"..\..\..\FrontendParser\Test\MainXML-RemoteScreen.txt"));
            if (MainCmdDesc.Command == "RemoteConsole")
            {
                ConsoleParser consoleParser = new ConsoleParser("ConsoleParser");
                CommandDescriptor consoleCmdDesc = consoleParser.Parse(MainCmdDesc.InnerData);
            }
            else if (MainCmdDesc.Command == "RemoteChat")
            {
                ChatParser chatParser = new ChatParser("ChatParser");
                CommandDescriptor chatCmdDesc = chatParser.Parse(MainCmdDesc.InnerData);
            }
            else if (MainCmdDesc.Command == "RemoteScreen")
            {
                ScreenParser screenParser = new ScreenParser("ScreenParser");
                CommandDescriptor screenCmdDesc = screenParser.Parse(MainCmdDesc.InnerData);
            }
            RemoteServer remoteServer = new RemoteServer();
            remoteServer.Start();
        }
    }
}
